.chatContainer, .chatContainer div, .chatContainer ul, .chatContainer li, .chatContainer p {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 设置滚动条的样式 */
::-webkit-scrollbar {
    width: 5px;
}

/* 滚动槽 */
::-webkit-scrollbar-track {
    border-radius: 10px;
}

/* 滚动条滑块 */
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #d9d9d9;
    -webkit-box-shadow: #d9d9d9;
}

::-webkit-scrollbar-thumb:window-inactive {
    background: rgba(175, 190, 255, 0.4);
}

/*按钮样式*/
.btn-default-styles {
    outline: none;
    resize: none;
    border: none;
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    background: #33d6ff;
    color: #fff;
    border-radius: 4px;
}

.btn-default-styles:focus {
    outline: none;
}

.btn-default-styles:hover {
    background: #34ce57;
    animation: anniu 1s infinite;
}

.btn-default-styles:active {
    box-shadow: 0 2px 3px rgba(0, 0, 0, .2) inset;
}

.chatBtn {
    width: 50px;
    height: 50px;
    background: #01bef0;
    color: #fff;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    box-shadow: 2px 2px 2px #d4d4d4;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
    overflow: hidden;
}

.chatBtn:hover {
    background: #01b3df;
    box-shadow: none;
}

.chatBtn > i {
    font-size: 25px;
}

.chatBox {
    width: 80%;
    left: 10%;
    min-width: 200px;
    height: 600px;
    border-radius: 8px;
    background: #f5ecff;
    position: relative;
    top: auto;

    overflow: hidden;
    border: solid 2px #ffffff;
    box-shadow: 1px 1px 2px #ffffff;
    z-index: 1005;
}

.chatBox-head {
    width: 100%;
    height: 45px;
    background: #33d6ff;
    position: relative;
    top: 0;
    left: 0;
}

.chatBox-head-one {
    width: 100%;
    height: 50px;
    line-height: 45px;
    color: #f0f0f0;
    font-size: 20px;
    text-align: center;
    position: relative;
    top: 0;
    left: 0;
}

.chatBox-info {
    width: 100%;
    height: 550px;
    background: #fff;
    text-align: left;
    position: absolute;
    left: 0;
    border-color: #33d6ff;
}

.chatBox-list {
    width: 100%;
    height: 495px;
    overflow-y: scroll;
}

.chat-list-people:hover {
    cursor: pointer;
    background: #f8f8f8;
}

.chat-list-people > div {
    height: 55px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

.chat-list-people > div:nth-of-type(1) {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    overflow: hidden;
}

.chat-list-people > div:nth-of-type(1) > img {
    width: 40px;
    height: 40px;
}


.chat-name {
    width: 230px;
}

.chat-name > p {
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.chat-name > p:nth-of-type(1) {
    line-height: 55px;
}

.chat-list-people > div.message-num {
    display: inline-block;
    height: auto;
    min-width: 10px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
    margin-right: 15px;
    margin-top: 14px;
    color: #fff;
    background: #f46266;
    float: right;
}

.chat-message-num {
    display: inline-block;
    height: auto;
    min-width: 10px;
    padding: 3px 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
    margin-right: 15px;
    margin-top: 14px;
    color: #fff;
    background: #f46266;
    position: absolute;
    bottom: 40px;
    right: -24px;
}


.chatBox-content {
    width: 100%;
}

.clearfloat:after {
    display: block;
    clear: both;
    content: "";
    visibility: hidden;
    height: 0
}

.clearfloat {
    zoom: 1;
    margin: 8px 8px;
}

.clearfloat .right {
    float: right;
}

.time-div {
    text-align: center;
    margin: 2px 0 2px 0;
    color: #4e555b;
}


.chatBox-activate{
    width: 100%;
    overflow-y: scroll;
}


/***********************************************************/
/*chat-message*/
.clearfloat .chat-message {
    max-width: 80%;
    text-align: left;
    padding: 6px 6px;
    border-radius: 4px;
    word-wrap: break-word;
    display: inline-block;
    position: relative;
    font-size: 16px;
}

.clearfloat .left .chat-message {
    background: #33d6ff;
    min-height: 30px;
}

.clearfloat .left .chat-message:before {
    position: absolute;
    content: "";
    top: 8px;
    left: -6px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid #33d6ff;
}

.clearfloat .right {
    text-align: right;
}

.clearfloat .right .chat-message {
    background: #99e6ff;
    color: #000000;
    text-align: left;
    min-height: 30px;
}

.clearfloat .right .chat-message:before {
    position: absolute;
    content: "";
    top: 8px;
    right: -6px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #99e6ff;
}
/***********************************************************/


/***********************************************************/
/*chat-avatars*/
.clearfloat .chat-avatars {
    display: inline-block;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #ffffff;
    vertical-align: top;
    overflow: hidden;
}

.clearfloat .chat-avatars > img {
    width: 43px;
    height: 43px;
}

.clearfloat .left .chat-avatars {
    margin-right: 10px;
}

.clearfloat .right .chat-avatars {
    margin-left: 10px;
}
/***********************************************************/


.chatBox-send {
    width: 100%;
    padding: 5px 5px;
    background: #33d6ff;
    position: absolute;
    bottom: 0;
    left: 0;
}

.div-textarea {
    width: 95%;
    min-height: 25px;
    max-height: 200px;
    _height: 200px;
    padding: 3px;
    outline: 0;
    background: #fff;
    font-size: 16px;
    line-height: 20px;
    word-wrap: break-word;
    overflow-x: hidden;
    overflow-y: auto;
    user-modify: read-write-plaintext-only; /*纯文本*/
    -webkit-user-modify: read-write-plaintext-only;
    -moz-user-modify: read-write-plaintext-only;
}

.div-textarea:focus {
    box-shadow: 0 0 5px rgba(82, 168, 236, 0.6);
}

.chatBox-send > div {
    float: left;
}

.chatBox-send > div:nth-of-type(2) {
    font-size: 0;
}

.chatBox-send > div button {
    padding: 1px 5px;
    margin-left: 3px;
}

.chatBox-send > div label {
    padding: 1px 5px;
    margin-left: 3px;
}



#chat-biaoqing {
    position: relative;
}

.hidden {
    display: none;
}

.biaoqing-photo {
    width: 200px;
    height: 160px;
    background: #ffffff;
    position: absolute;
    top: -160px;
    right: 40px;
    text-align: left;
    border-radius: 5px;
    border: solid 1px #c5c5c5;
    display: none;
}

.biaoqing-photo::before {
    content: '';
    position: absolute;
    border-top: solid 7px #c5c5c5;
    border-left: solid 9px transparent;
    border-right: solid 9px transparent;
    bottom: -7px;
    right: 36px;
}

.biaoqing-photo::after {
    content: '';
    position: absolute;
    border-top: solid 7px #fff;
    border-left: solid 10px transparent;
    border-right: solid 10px transparent;
    bottom: -5px;
    right: 35px;
}

.biaoqing-photo > ul {
    margin: 0;
    width: 200px;
    height: 160px;
    padding: 3px 2px;
    list-style: none;
}

.biaoqing-photo > ul > li {
    float: left;
    height: 30px;
    margin-left: 2px;
}

.emoji-picker-image {
    display: inline-block;
    width: 30px;
    height: 30px;
    background: url(../img/bqxtb01.png) no-repeat;
    background-size: 200px auto;
    cursor: pointer;
}

.biaoqing-photo > ul > li span.emoji-picker-image:hover {
    border: solid 1px #f5f5f5;
}

.chat-message img {
    width: 220px;
    height: auto;
}

@media all and (max-width: 768px) {
    .chatBox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media all and (max-width: 370px) {
    .chat-name {
        width: 185px;
    }

    .chat-people > div:nth-of-type(2) {
        width: 120px;
    }

    .clearfloat .chat-message {
        max-width: 240px;
    }
}